package com.excellence.mapper;

import com.excellence.pojo.News;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 沈秉璋
 * @description 针对表【news】的数据库操作Mapper
 * @createDate 2024-04-08 09:33:27
 * @Entity pojo.News
 */
@Mapper
public interface NewsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(News record);

    int insertSelective(News record);

    List<News> selectByNewsType(String newsType);

    List<News> selectAll();

    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKey(News record);

}
